function beginValidation() {
	$('.field.warning').removeClass('warning');
	$('.errorMsg').remove();
}

function addError(inputName, msg) {
	var container = $('.input[name="' + inputName + '"]').closest('.field');
	container.addClass('warning');
	container.append($('<span />').addClass('warning alert five columns errorMsg').text(msg));
}